import java.util.List;

import com.cogent.business.cache.UserCacheManager;
import com.cogent.business.domain.UserDomain;
import com.cogent.common.util.StringUtil;
import com.cogent.dynamicform.domain.FormColumnDomain;
import com.cogent.dynamicform.domain.FormDomain;
import com.cogent.dynamicform.xml.DynamicFormXmlParse;


public class DynamicFormTest {
	public static void main(String[] args) {
	/*	FormDomain formDomain = DynamicFormXmlParse.parseForm("OA_BUSINESSCHECKPLAN");
		List couumn = formDomain.getColumnList();
		for(int i=0; i<couumn.size(); i++) {
			FormColumnDomain formcolumndomain = (FormColumnDomain)couumn.get(i);
			if(formcolumndomain.getName().equals("productsellid")) {
				System.out.println(formcolumndomain.getOpttype());
				System.out.println(formDomain.getParentid().equals(formcolumndomain.getName()));
			}
		}
		System.out.println(formDomain.getParentid());
		*/
		/*String sql = formDomain.getQuerysql();
		String groupby = "";
		int index = sql.indexOf(" group by ");
		if(index > 0){
			sql = sql.substring(0, index);
			groupby = formDomain.getQuerysql().substring(index);
		}*/
		/*Iterator it = formDomain.getColumnList().iterator();
		while(it.hasNext()) {
			FormColumnDomain formColumnDomain = (FormColumnDomain)it.next();
			if(formColumnDomain.getName().equals("names")) {
				System.out.println(formColumnDomain.getPopfullup());
				System.out.println(HtmlUtil.getUTF8(formColumnDomain.getPopfullup()));
			}
		}*/
		long maxSize = 100000000;
		System.out.println(maxSize);
		//System.out.println(formDomain.getId());
	/*	System.out.println(sql);
		System.out.println(groupby);*/
		/*List list = formDomain.getQueryList();
		Iterator it = list.iterator();
		while(it.hasNext()) {
			FormQueryDomain formQueryDomain = (FormQueryDomain)it.next();
			System.out.println(formQueryDomain.getTablename());
		}*/
		/*FormColumnDomain formColumnDomain = (FormColumnDomain)formDomain.getColumnList().get(0);
		System.out.println(formColumnDomain.getPopfullup());
		System.out.println(DynamicFormHelper.getScript(formDomain));
		System.out.println("names|6".indexOf("|"));
		System.out.println("names|6".split("|")[1]);*/
	/*	Map map = new HashMap();
		map.put("date", "1987-04-12 00:00:00.0");
		System.out.println(MapUtil.getShortDate(map, "date"));
		System.out.println(MapUtil.getIntValue(map, "is_closed"));*/
		
		/*System.out.println(SqlDateUtil.toSqlDate("1990-04-15 00:00:00.0"));
		
		
		HashMap map = new HashMap();
		map.put("num", "0.05");
		System.out.println(MapUtil.getStringValue(map, "num"));*/
		
		/*BussinessInstance bussinessInstance = new BussinessInstance();
		BussinessDaoFacade bussinessFacade = bussinessInstance.getBussinessFacade();
		List queryList = new ArrayList();
		queryList.add(new QueryParamDomain("id", "c33a55ee1a064f76b4b4e420b3e5abd8"));
		HashMap dataMap = bussinessFacade.getByID("pd_sellapply", queryList);
		System.out.println(dataMap);*/
		/*UserCacheManager.getInstance().put("1112", new UserDomain());
		String tem = "11111";*/
		System.out.println(StringUtil.isConatianChinese("各位天翼手机直销网会员：大家好，天翼飞Young机型夏普SH330T已上市，直供价格840元/部，零售价990元/部，配置与华为8650相同，请各位积极采购。另从今日起凡在直销网采购会员，均可得天翼终端公司赠送价值50元产品手册1本，限每店一本，5月1日截止，谢谢。"));
		
		System.out.println(StringUtil.getByteEncode("各位天翼手机直销网会员：大家好，天翼飞Young机型夏普SH330T已上市，直供价格840元/部，零售价990元/部，配置与华为8650相同，请各位积极采购。另从今日起凡在直销网采购会员，均可得天翼终端公司赠送价值50元产品手册1本，限每店一本，5月1日截止，谢谢。", "GB18030"));
	}
}

